<?php
/**************************************************************************************************
|
| AudioShare - Audio Sharing Script
| http://www.audiosharescript.com
| webmaster@audiosharescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.audiosharescript.com/eula.html and to be bound by it.
|
| Copyright (c) 2010 AudioShareScript.com. All rights reserved.
|**************************************************************************************************/

include("include/config.php");

destroy_slrememberme($_SESSION[USERNAME]);
$_SESSION[USERID]="";
session_unregister("USERID");
$_SESSION[EMAIL]="";
session_unregister("EMAIL");
$_SESSION[USERNAME]="";
session_unregister("USERNAME");
$_SESSION[VERIFIED]="";
session_unregister("VERIFIED");
if($_SESSION[FACEBOOK] == "1") {
	$_SESSION[FACEBOOK]="";
	session_unregister("FACEBOOK");
	$logoutUrl = $_SESSION["LOGOUT"];
	$_SESSION[LOGOUT]="";
	session_unregister("LOGOUT");
	?><script type="application/javascript">window.location.href = "<?php echo $logoutUrl;?>";</script><?php
}
header("location: $config[baseurl]/index.php");
?>
